package task15;

import java.util.Scanner;

public class Test3 {
    public static void main(String[] args) {
        Scanner Sc= new Scanner(System.in);
        System.out.println("请输入m值：");
        int m = Sc.nextInt();
        System.out.println("请输入n行：");
        int n = Sc.nextInt();
        wujiao(m,n);
    }

    private static void wujiao(int m, int n) {
        for(int i=1;i<=m;i++){
            for(int j=1;j<=n;j++){
                System.out.print("*");
            }
            System.out.println();
        }
    }
}
